<?php

namespace adminmatrix\plugin;

use app\BaseController;
use think\App;
use think\Request;
abstract class Plugins
{
    public Request $request;
    public array $plugin_config;
    protected $middleware = [];
    public function __construct(public App $app)
    {
        $this->request = $this->app->request;
        # 获取插件配置
         $this->plugin_config = json_decode(file_get_contents($this->app->getAppPath() . 'module.json'), true);
    }
}